<div class="fly-home fly-panel" style="background-image: url({$LoginUser[\'cover_cdn\']});">
  <img src="{$userList['avatar_cdn']}" alt="{$LoginUser['nickname']}">
  {if condition="$userList['auth'] == 1"}
  <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
  {/if}
  <h1>
    <span style="font-size: 25px;">{$userList['nickname']}</span>

    {if condition="$userList['sex'] == 1"}
    <i class="iconfont icon-nan"></i>
    {elseif condition="$userList['sex'] == 2"}
    <i class="iconfont icon-nv"></i>
    {else /}
    <span>{$userList['sex_text']}</span>
    {/if}
    <i class="layui-badge fly-badge-vip">VIP {$userList['vip']}</i>
    <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
  </h1>
  {if condition="$userList['auth']"}
  <p style="padding: 10px 0; color: #5FB878;">认证信息：{$userList['nickname']}</p>
  {else /}
  <p style="color:#c00;"> 未认证 </p>
  {/if}
  <!-- <p style="padding: 10px 0; color: #5FB878;">认证信息：{$LoginUser['nickname']}</p> -->

  <p class="fly-home-info">
    <i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;">{$userList['point']} 积分</span>
    <i class="iconfont icon-shijian"></i><span>{$userList['createtime']} 加入</span>
    {if condition="$userList.province"}
    <!-- <i class="iconfont icon-chengshi"></i><span>{$LoginUser.provinces.name}-{$LoginUser.citys.name}-{$LoginUser.districts.name}</span> -->
    <i class="iconfont icon-chengshi"></i><span>{$userList['region_text']}</span>
    {else /}
    <i class="iconfont icon-chengshi"></i><span>保密</span>
    {/if}
  </p>

  <!-- <p class="fly-home-sign">（人生仿若一场修行）</p> -->
  <p class="fly-home-sign">（{$userList.content ? $userList.content : '这个人太懒，什么都没留下'}）</p>

  {if condition="$userList['id'] != $LoginUser['id']"}
  <div class="fly-sns" data-user="">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
  </div>
  {/if}

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title"><b>{$userList['nickname']}</b> 最近的提问</h3>
        <ul class="jie-row">
          {foreach $postList as $item}
          <li>
            {if condition="$item.state == 1"}
            <span class="fly-jing">置</span>
            {elseif condition="$item.state == 2"}
            <span class="fly-jing">精</span>
            {elseif condition="$item.state == 3"}
            <span class="fly-jing">热</span>
            {else /}
            <span class="fly-rank">普</span>
            {/if}
            <a href="" class="jie-title">{$item.title}</a>
            <i>{$item.createtime}</i>
            <em class="layui-hide-xs">{$item['visit_count']}阅/{$item['comment_count']}答</em>
          </li>
          {/foreach}

          <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
        </ul>
        {$postList->render()}
      </div>
    </div>

    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title"><b>{$userList['nickname']}</b> 最近的回答</h3>
        <ul class="home-jieda">
          {foreach $commentList as $item}
          <li>
            <p>
              <span>{$item.createtime}前</span>
              在<a href="" target="_blank">{$item.post.title}</a>中回答：
            </p>
            <div class="home-dacontent">
              {$item.content}
            </div>
          </li>
          {/foreach}
          {$commentList->render()}
          <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
        </ul>
      </div>
    </div>
  </div>
</div>

<script>
  var AjaxPage = function (page) {
    $.ajax({
      url: 'http://xxx/public/index.php/back/topic/ajaxList',
      type: 'post',
      dataType: 'json',
      data: { apage: page },
      success: function (data) {
        //console.log(data)
        $("#result").html(data.page);
      }
    });
  }

</script>